home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / IDLIncludes / NumberFormatting.idl < prev    next >
Text File  |  1996-05-01  |  3KB  |  118 lines

  1. /*
  2.      File:        NumberFormatting.idl
  3.  
  4.      Version:    Technology:    8.0
  5.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  6.  
  7.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. */
  16. #ifndef __NUMBERFORMATTING_IDL__
  17. #define __NUMBERFORMATTING_IDL__
  18.  
  19. #include <somobj.idl>
  20. #include <somcls.idl>
  21.  
  22. #ifndef __CONDITIONALMACROS_IDL__
  23. #include <ConditionalMacros.idl>
  24. #endif
  25. #ifndef __TYPES_IDL__
  26. #include <Types.idl>
  27. #endif
  28. #if FOR_SYSTEM8_PREEMPTIVE
  29. #ifndef __TEXTOBJECTS_IDL__
  30. #include <TextObjects.idl>
  31. #endif
  32. #ifndef __TEXTCOMMON_IDL__
  33. #include <TextCommon.idl>
  34. #endif
  35. #ifndef __LOCALEOBJECTS_IDL__
  36. #include <LocaleObjects.idl>
  37. #endif
  38. #ifndef __TEXTPARSER_IDL__
  39. #include <TextParser.idl>
  40. #endif
  41. #endif
  42. #if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
  43. #ifndef __INTLRESOURCES_IDL__
  44. #include <IntlResources.idl>
  45. #endif
  46. #endif
  47.  
  48. #ifdef __SOMIDL__
  49.  
  50. /*
  51.  
  52.     Here are the current System 7 routine names and the translations to the older forms.
  53.     Please use the newer forms in all new code and migrate the older names out of existing
  54.     code as maintainance permits.
  55.     
  56.     New Name                    Old Name(s)
  57.     
  58.     ExtendedToString            FormatX2Str
  59.     FormatRecToString            Format2Str
  60.     NumToString                
  61.     StringToExtended            FormatStr2X
  62.     StringToFormatRec            Str2Format
  63.     StringToNum                
  64.  
  65. */
  66. #if FOR_SYSTEM7_AND_SYSTEM8_PREEMPTIVE
  67. typedef SOMLargeStruct            NumFormatString;            /* Derived from a struct of 256 bytes in size */
  68.  
  69. typedef NumFormatString            NumFormatStringRec;
  70.  
  71. #endif
  72. #if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
  73. typedef short                    FormatStatus;
  74.  
  75. typedef SInt8                    FormatClass;
  76.  
  77. typedef SInt8                    FormatResultType;
  78.  
  79. typedef SOMFourByteStruct        FVector;                    /* Derived from a struct of 4 bytes in size */
  80.  
  81. /* index by [fPositive..fZero] */
  82. typedef OpaquePtr                TripleInt;                    /* Substituted OpaquePtr for array of FVector of size 3 */
  83.  
  84. #if CGLUESUPPORTED
  85. #endif
  86. /* CGLUESUPPORTED*/
  87. #endif
  88. #if FOR_SYSTEM7_AND_SYSTEM8_PREEMPTIVE
  89. #endif
  90. #if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
  91. #endif
  92. #if OLDROUTINENAMES
  93. #if FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED
  94. #endif
  95. /* FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED*/
  96. #endif
  97. /* OLDROUTINENAMES*/
  98. #if FOR_SYSTEM8_PREEMPTIVE
  99. typedef LocaleObjectRef            LocaleNumberFormatterObjectRef;
  100.  
  101. typedef OptionBits                NumberFormatterOptionBits;
  102.  
  103. typedef UInt32                    NumberFormatterTokenID;
  104.  
  105. typedef SOMLargeStruct            FIndexVector;                /* Derived from a struct of 8 bytes in size */
  106.  
  107. /* index by [fPositive..fZero] */
  108. typedef OpaquePtr                TripleIndex;                /* Substituted OpaquePtr for array of FIndexVector of size 3 */
  109.  
  110. typedef UInt32                    CurrencyPosition;
  111.  
  112. #endif
  113.  
  114. #endif /* __SOMIDL__ */
  115.  
  116. #endif /* __NUMBERFORMATTING_IDL__ */
  117.  
  118.